using System.Collections;
using System.Collections.Generic;
using System.IO.Ports;
using UnityEngine;
using UnityEngine.Animations;

public class AnimationEvent : MonoBehaviour
{
    private CharacterAnimation animatorController;
    private CharacterBase characterBase;
    private PlayAudioComp playAudioComp;
    void Awake()
    {
        animatorController = GetComponentInParent<CharacterAnimation>();
        characterBase = GetComponentInParent<CharacterBase>();
        playAudioComp = GetComponent<PlayAudioComp>();
    }
    // Start is called before the first frame update
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {

    }


    public void attackEndFun()
    {
        Debug.Log("attackEnd");
        // characterBase.Attacking(false);

    }
    
    public void walk()
    {
        playAudioComp.PlayMoveAudio();
    }
}
